package com.wzy.level.category.categoryDao;

import com.wzy.Jdbc封装.pojo.News_category;
import com.wzy.Jdbc封装.pojo.News_comment;
import com.wzy.level.byPage.byPageDto.ByPage;

import java.util.List;

public interface categoryDao {
    //查询所有
    public List<News_category> selectAll();

    public News_category selectById(int id);
    //分页查询
    public List<News_category> selectByPage(ByPage byPage);

    //增
    public int insert(News_category category );

    //改
    public int update(News_category category);

    //删
    public int deleteById(int id);

    public int deleteByName(News_category category);
}
